import request from '@/axios';

/**
 * 文件流返回
 * @param url 接口地址
 * @param params 接口参数
 */
export const exportBlob = (url, params) => {
  return request({
    url: url,
    params: params,
    method: 'get',
    responseType: 'blob',
  });
};

/**
 * 文件流返回
 * @param url 接口地址
 * @param params 接口参数
 */
export const exportBlobPost = (url, params) => {
    return request({
        url: url,
        data: params,
        method: 'post',
        responseType: 'blob',
    });
};


export const teamLeaderSelect = () => {
  return request({
    url: '/blade-anwise/common/teamLeaderSelect',
    method: 'get',
  });
};

export const allUserList = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/common/allUserList',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const generateQCSign = () => {
    return request({
        url: '/blade-anwise/common/generateQCSign',
        method: 'post',
    });
};
